﻿using System;
using System.ComponentModel;
using System.Xml.Serialization;
using DevExpress.Xpo;
using DevExpress.Xpo.Metadata;
using DevExpress.Xpo.Helpers;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    [Persistent("TopTaohuaSearchItems")]
    public class TopTaohuaSearchItems : BaseObject
    {
        //begin
        public TopTaohuaSearchItems()
        {}
        public TopTaohuaSearchItems(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        [Association("TopTaohuaSearchItemsTaohuaSearchItems", typeof(TopTaohuaSearchItem)), Aggregated]
        public XPCollection<TopTaohuaSearchItem> TaohuaSearchItems_
        {
            get
            {
                return GetCollection<TopTaohuaSearchItem>("TaohuaSearchItems_");
            }
        }
        [Association("TopTaohuaSearchItemsCatePaths", typeof(TopTaohuaCategory)), Aggregated]
        public XPCollection<TopTaohuaCategory> CatePaths
        {
            get
            {
                return GetCollection<TopTaohuaCategory>("CatePaths");
            }
        }
        [Association("TopTaohuaSearchItemsCateStats", typeof(TopTaohuaCateStat)), Aggregated]
        public XPCollection<TopTaohuaCateStat> CateStats
        {
            get
            {
                return GetCollection<TopTaohuaCateStat>("CateStats");
            }
        }
        private long _TotalItem;
        public long TotalItem
        {
            get
            {
                return _TotalItem;
            }
            set
            {
                SetPropertyValue("TotalItem", ref _TotalItem, value);
            }
        }
        //end
    }
}
